//
//  CategoryDetailTableViewCell.m
//  JZMCFM
//
//  Created by MJL on 15/11/2.
//  Copyright (c) 2015年 陈卓. All rights reserved.
//

#import "CategoryDetailTableViewCell.h"
#import "CategoryDetailCellModel.h"
@implementation CategoryDetailTableViewCell


- (void)setCellDataWithModel:(CategoryDetailCellModel *)model
{
    
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.coverMiddle]];
    self.titleLabel.text = model.title;
    self.introLabel.text = model.intro;
    NSString *playsCounts = [NSString stringWithFormat:@"%ld万",model.playsCounts / 10000];
    self.palysCountsLabel.text = playsCounts;
    self.tracksCounts.text = [NSString stringWithFormat:@"%ld集",model.tracksCounts ];
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
